Skip to content

Conversation

@ahmohamed
Copy link

Currently roxygen matches ^(#\\'\\s*), which matches all whitespace after #' including newlines. This misses the following case:

#' @param xyz abcde
#'
any <- function(){}  # <--- this line is not highlighted as function

Pattern fixes excludes newline from whitespace by double negation [^\S\n]

Currently roxygen matches `^(#\\'\\s*)`, which matches all whitespace after `#'` including newlines. This misses the following case:

```r
#' @param xyz abcde
#'
any <- function(){}  # <--- this line is not highlighted as function
```

Pattern fixes excludes newline from whitespace by double negation `[^\S\n]`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant